﻿using Abp.Application.Services;
using Mall.DomainModel;
using Mall.DomainModel.IRepository;
using Mall.Service.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mall.Service
{
    public class ShipperUserService : ApplicationService, IShipperUserService
    {
        private readonly IShipperUserRepository _shipperUserRepository;
        public ShipperUserService(IShipperUserRepository shipperUserRepository)
        {
            _shipperUserRepository = shipperUserRepository;
        }
        public async Task<ShipperUser> GetShipperUserByPhone(string phone, string name)
        {
            var longin= await _shipperUserRepository.GetShipperUserByPhone(phone, name);
            return longin;
        }
    }
}
